<?php

class Application_Form_BugReportListToolsForm extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	$options = array(
			'0'		  => 'None',
			'priority'=> 'Priority',
			'status'   => 'Status',
			'date'     => 'Date',
			'url'		  => 'URL',
			'author'  => 'Submitter'	
		);	
		$sort = $this->createElement('select', 'sort');		
		$sort->setLabel('Sort Records: ');
		$sort->addMultiOptions($options);
		$this->addElement($sort);
		
		$filterField = $this->createElement('select', 'filter_field');
		$filterField->setLabel('Filter Field: ');
		$filterField->addMultiOptions($options);
		$this->addElement($filterField);
		
		// create new element
		$filter = $this->createElement('text', 'filter');		
		$filter->setLabel('Filter value: ');
		$filter->setAttrib('size', 40);
		$this->addElement($filter);
		
		// add element: submit button
		$this->addElement('submit', 'submit', array('label' => 'Update List'));	
    }


}

